package com.example.activitidemo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.util.Date;

@Data
@Builder
@ApiModel(description = "事件参数")
public class EventVO {
    @ApiModelProperty(value = "事件ID")
    private String id;

    @ApiModelProperty(value = "受理人ID")
    private String assignee;

    @ApiModelProperty(value = "受理人ID集合", hidden = true)
    private String assigneeList;

    @ApiModelProperty(value = "处理意见")
    private String comment;

    @ApiModelProperty(value = "下一步连线名称")
    private String outcome;

    @ApiModelProperty(value = "流程变量-图片名称", hidden = true)
    private String imageName;

    @ApiModelProperty(value = "任务ID", hidden = true)
    private String taskId;

    @ApiModelProperty(value = "组ID", hidden = true)
    private String groupId;

    @ApiModelProperty(value = "受理人姓名", hidden = true)
    private String assigneeName;

    @ApiModelProperty(value = "天数")
    private Integer day;

    @ApiModelProperty(value = "事件内容", hidden = true)
    private String content;

    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date date;

    @ApiModelProperty(value = "结束时间", hidden = true)
    private Date finishTime;

    public EventVO assigneeName(String val) {
        assigneeName = val;
        return this;
    }

    public EventVO id(String val) {
        id = val;
        return this;
    }

    public EventVO day(int val) {
        day = val;
        return this;
    }

    public EventVO content(String val) {
        content = val;
        return this;
    }

    public EventVO date(Date val) {
        date = val;
        return this;
    }
    public EventVO finishTime(Date val) {
        finishTime = val;
        return this;
    }


    @Tolerate
    public EventVO() {
        super();
    }
}
